import request from '@/utils/request'

// 查询用户每天学习测试正确率列表
export function listAccuracy(query) {
  return request({
    url: '/shasha/accuracy/list',
    method: 'get',
    params: query
  })
}

// 查询用户每天学习测试正确率详细
export function getAccuracy(id) {
  return request({
    url: '/shasha/accuracy/' + id,
    method: 'get'
  })
}

// 新增用户每天学习测试正确率
export function addAccuracy(data) {
  return request({
    url: '/shasha/accuracy',
    method: 'post',
    data: data
  })
}

// 修改用户每天学习测试正确率
export function updateAccuracy(data) {
  return request({
    url: '/shasha/accuracy',
    method: 'put',
    data: data
  })
}

// 删除用户每天学习测试正确率
export function delAccuracy(id) {
  return request({
    url: '/shasha/accuracy/' + id,
    method: 'delete'
  })
}
